package com.nervenets.web.controller.handler.admin.news;

import com.nervenets.web.annotation.NeedValidation;
import com.nervenets.web.controller.handler.common.UserPagingParams;
import com.nervenets.web.enumeration.NewsType;
import com.nervenets.web.validation.Type;

public class NewsForManagerParams extends UserPagingParams {
    @NeedValidation(type = Type.EMPTY, description = "分类ID，不筛选不填")
    private int tagId;
    @NeedValidation(type = Type.EMPTY, description = "关键字，不筛选不填")
    private String keyword;
    @NeedValidation(type = Type.NOTEMPTY, description = "资讯分类")
    private NewsType newsType;

    public int getTagId() {
        return tagId;
    }

    public void setTagId(int tagId) {
        this.tagId = tagId;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public NewsType getNewsType() {
        return newsType;
    }

    public void setNewsType(NewsType newsType) {
        this.newsType = newsType;
    }
}
